Optimal. Leaf size=261 \[ -\frac {\tanh ^{-1}(a x)^4}{a^2 c}-\frac {x \tanh ^{-1}(a x)^4}{a c}+\frac {4 \tanh ^{-1}(a x)^3 \log \left (\frac {2}{1-a x}\right )}{a^2 c}+\frac {\tanh ^{-1}(a x)^4 \log \left (\frac {2}{1-a x}\right )}{a^2 c}+\frac {6 \tanh ^{-1}(a x)^2 \text {PolyLog}\left (2,1-\frac {2}{1-a x}\right )}{a^2 c}+\frac {2 \tanh ^{-1}(a x)^3 \text {PolyLog}\left (2,1-\frac {2}{1-a x}\right )}{a^2 c}-\frac {6 \tanh ^{-1}(a x) \text {PolyLog}\left (3,1-\frac {2}{1-a x}\right )}{a^2 c}-\frac {3 \tanh ^{-1}(a x)^2 \text {PolyLog}\left (3,1-\frac {2}{1-a x}\right )}{a^2 c}+\frac {3 \text {PolyLog}\left (4,1-\frac {2}{1-a x}\right )}{a^2 c}+\frac {3 \tanh ^{-1}(a x) \text {PolyLog}\left (4,1-\frac {2}{1-a x}\right )}{a^2 c}-\frac {3 \text {PolyLog}\left (5,1-\frac {2}{1-a x}\right )}{2 a^2 c} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.36, antiderivative size = 261, normalized size of antiderivative = 1.00, number of steps
used = 12, number of rules used = 8, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.471, Rules used = {6077, 6021,
6131, 6055, 6095, 6205, 6209, 6745} \begin {gather*} \frac {3 \text {Li}_4\left (1-\frac {2}{1-a x}\right )}{a^2 c}-\frac {3 \text {Li}_5\left (1-\frac {2}{1-a x}\right )}{2 a^2 c}+\frac {2 \text {Li}_2\left (1-\frac {2}{1-a x}\right ) \tanh ^{-1}(a x)^3}{a^2 c}+\frac {6 \text {Li}_2\left (1-\frac {2}{1-a x}\right ) \tanh ^{-1}(a x)^2}{a^2 c}-\frac {3 \text {Li}_3\left (1-\frac {2}{1-a x}\right ) \tanh ^{-1}(a x)^2}{a^2 c}-\frac {6 \text {Li}_3\left (1-\frac {2}{1-a x}\right ) \tanh ^{-1}(a x)}{a^2 c}+\frac {3 \text {Li}_4\left (1-\frac {2}{1-a x}\right ) \tanh ^{-1}(a x)}{a^2 c}-\frac {\tanh ^{-1}(a x)^4}{a^2 c}+\frac {\log \left (\frac {2}{1-a x}\right ) \tanh ^{-1}(a x)^4}{a^2 c}+\frac {4 \log \left (\frac {2}{1-a x}\right ) \tanh ^{-1}(a x)^3}{a^2 c}-\frac {x \tanh ^{-1}(a x)^4}{a c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 6021
Rule 6055
Rule 6077
Rule 6095
Rule 6131
Rule 6205
Rule 6209
Rule 6745
Rubi steps
\begin {align*} \int \frac {x \tanh ^{-1}(a x)^4}{c-a c x} \, dx &=\frac {\int \frac {\tanh ^{-1}(a x)^4}{c-a c x} \, dx}{a}-\frac {\int \tanh ^{-1}(a x)^4 \, dx}{a c}\\ &=-\frac {x \tanh ^{-1}(a x)^4}{a c}+\frac {\tanh ^{-1}(a x)^4 \log \left (\frac {2}{1-a x}\right )}{a^2 c}+\frac {4 \int \frac {x \tanh ^{-1}(a x)^3}{1-a^2 x^2} \, dx}{c}-\frac {4 \int \frac {\tanh ^{-1}(a x)^3 \log \left (\frac {2}{1-a x}\right )}{1-a^2 x^2} \, dx}{a c}\\ &=-\frac {\tanh ^{-1}(a x)^4}{a^2 c}-\frac {x \tanh ^{-1}(a x)^4}{a c}+\frac {\tanh ^{-1}(a x)^4 \log \left (\frac {2}{1-a x}\right )}{a^2 c}+\frac {2 \tanh ^{-1}(a x)^3 \text {Li}_2\left (1-\frac {2}{1-a x}\right )}{a^2 c}+\frac {4 \int \frac {\tanh ^{-1}(a x)^3}{1-a x} \, dx}{a c}-\frac {6 \int \frac {\tanh ^{-1}(a x)^2 \text {Li}_2\left (1-\frac {2}{1-a x}\right )}{1-a^2 x^2} \, dx}{a c}\\ &=-\frac {\tanh ^{-1}(a x)^4}{a^2 c}-\frac {x \tanh ^{-1}(a x)^4}{a c}+\frac {4 \tanh ^{-1}(a x)^3 \log \left (\frac {2}{1-a x}\right )}{a^2 c}+\frac {\tanh ^{-1}(a x)^4 \log \left (\frac {2}{1-a x}\right )}{a^2 c}+\frac {2 \tanh ^{-1}(a x)^3 \text {Li}_2\left (1-\frac {2}{1-a x}\right )}{a^2 c}-\frac {3 \tanh ^{-1}(a x)^2 \text {Li}_3\left (1-\frac {2}{1-a x}\right )}{a^2 c}+\frac {6 \int \frac {\tanh ^{-1}(a x) \text {Li}_3\left (1-\frac {2}{1-a x}\right )}{1-a^2 x^2} \, dx}{a c}-\frac {12 \int \frac {\tanh ^{-1}(a x)^2 \log \left (\frac {2}{1-a x}\right )}{1-a^2 x^2} \, dx}{a c}\\ &=-\frac {\tanh ^{-1}(a x)^4}{a^2 c}-\frac {x \tanh ^{-1}(a x)^4}{a c}+\frac {4 \tanh ^{-1}(a x)^3 \log \left (\frac {2}{1-a x}\right )}{a^2 c}+\frac {\tanh ^{-1}(a x)^4 \log \left (\frac {2}{1-a x}\right )}{a^2 c}+\frac {6 \tanh ^{-1}(a x)^2 \text {Li}_2\left (1-\frac {2}{1-a x}\right )}{a^2 c}+\frac {2 \tanh ^{-1}(a x)^3 \text {Li}_2\left (1-\frac {2}{1-a x}\right )}{a^2 c}-\frac {3 \tanh ^{-1}(a x)^2 \text {Li}_3\left (1-\frac {2}{1-a x}\right )}{a^2 c}+\frac {3 \tanh ^{-1}(a x) \text {Li}_4\left (1-\frac {2}{1-a x}\right )}{a^2 c}-\frac {3 \int \frac {\text {Li}_4\left (1-\frac {2}{1-a x}\right )}{1-a^2 x^2} \, dx}{a c}-\frac {12 \int \frac {\tanh ^{-1}(a x) \text {Li}_2\left (1-\frac {2}{1-a x}\right )}{1-a^2 x^2} \, dx}{a c}\\ &=-\frac {\tanh ^{-1}(a x)^4}{a^2 c}-\frac {x \tanh ^{-1}(a x)^4}{a c}+\frac {4 \tanh ^{-1}(a x)^3 \log \left (\frac {2}{1-a x}\right )}{a^2 c}+\frac {\tanh ^{-1}(a x)^4 \log \left (\frac {2}{1-a x}\right )}{a^2 c}+\frac {6 \tanh ^{-1}(a x)^2 \text {Li}_2\left (1-\frac {2}{1-a x}\right )}{a^2 c}+\frac {2 \tanh ^{-1}(a x)^3 \text {Li}_2\left (1-\frac {2}{1-a x}\right )}{a^2 c}-\frac {6 \tanh ^{-1}(a x) \text {Li}_3\left (1-\frac {2}{1-a x}\right )}{a^2 c}-\frac {3 \tanh ^{-1}(a x)^2 \text {Li}_3\left (1-\frac {2}{1-a x}\right )}{a^2 c}+\frac {3 \tanh ^{-1}(a x) \text {Li}_4\left (1-\frac {2}{1-a x}\right )}{a^2 c}-\frac {3 \text {Li}_5\left (1-\frac {2}{1-a x}\right )}{2 a^2 c}+\frac {6 \int \frac {\text {Li}_3\left (1-\frac {2}{1-a x}\right )}{1-a^2 x^2} \, dx}{a c}\\ &=-\frac {\tanh ^{-1}(a x)^4}{a^2 c}-\frac {x \tanh ^{-1}(a x)^4}{a c}+\frac {4 \tanh ^{-1}(a x)^3 \log \left (\frac {2}{1-a x}\right )}{a^2 c}+\frac {\tanh ^{-1}(a x)^4 \log \left (\frac {2}{1-a x}\right )}{a^2 c}+\frac {6 \tanh ^{-1}(a x)^2 \text {Li}_2\left (1-\frac {2}{1-a x}\right )}{a^2 c}+\frac {2 \tanh ^{-1}(a x)^3 \text {Li}_2\left (1-\frac {2}{1-a x}\right )}{a^2 c}-\frac {6 \tanh ^{-1}(a x) \text {Li}_3\left (1-\frac {2}{1-a x}\right )}{a^2 c}-\frac {3 \tanh ^{-1}(a x)^2 \text {Li}_3\left (1-\frac {2}{1-a x}\right )}{a^2 c}+\frac {3 \text {Li}_4\left (1-\frac {2}{1-a x}\right )}{a^2 c}+\frac {3 \tanh ^{-1}(a x) \text {Li}_4\left (1-\frac {2}{1-a x}\right )}{a^2 c}-\frac {3 \text {Li}_5\left (1-\frac {2}{1-a x}\right )}{2 a^2 c}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.17, size = 172, normalized size = 0.66 \begin {gather*} -\frac {-\tanh ^{-1}(a x)^4+a x \tanh ^{-1}(a x)^4-\frac {2}{5} \tanh ^{-1}(a x)^5-4 \tanh ^{-1}(a x)^3 \log \left (1+e^{-2 \tanh ^{-1}(a x)}\right )-\tanh ^{-1}(a x)^4 \log \left (1+e^{-2 \tanh ^{-1}(a x)}\right )+2 \tanh ^{-1}(a x)^2 \left (3+\tanh ^{-1}(a x)\right ) \text {PolyLog}\left (2,-e^{-2 \tanh ^{-1}(a x)}\right )+3 \tanh ^{-1}(a x) \left (2+\tanh ^{-1}(a x)\right ) \text {PolyLog}\left (3,-e^{-2 \tanh ^{-1}(a x)}\right )+3 \text {PolyLog}\left (4,-e^{-2 \tanh ^{-1}(a x)}\right )+3 \tanh ^{-1}(a x) \text {PolyLog}\left (4,-e^{-2 \tanh ^{-1}(a x)}\right )+\frac {3}{2} \text {PolyLog}\left (5,-e^{-2 \tanh ^{-1}(a x)}\right )}{a^2 c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 7.06, size = 381, normalized size = 1.46
method | result | size |
derivativedivides | \(\frac {-\frac {\arctanh \left (a x \right )^{4} a x}{c}-\frac {\arctanh \left (a x \right )^{4} \ln \left (a x -1\right )}{c}+\frac {2 \arctanh \left (a x \right )^{3} \polylog \left (2, -\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}\right )-3 \arctanh \left (a x \right )^{2} \polylog \left (3, -\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}\right )+3 \arctanh \left (a x \right ) \polylog \left (4, -\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}\right )-\frac {3 \polylog \left (5, -\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}\right )}{2}+i \pi \arctanh \left (a x \right )^{4}-i \pi \mathrm {csgn}\left (\frac {i}{\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}+1}\right )^{2} \arctanh \left (a x \right )^{4}-\arctanh \left (a x \right )^{4}+4 \arctanh \left (a x \right )^{3} \ln \left (\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}+1\right )+6 \arctanh \left (a x \right )^{2} \polylog \left (2, -\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}\right )-6 \arctanh \left (a x \right ) \polylog \left (3, -\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}\right )+3 \polylog \left (4, -\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}\right )+\ln \left (2\right ) \arctanh \left (a x \right )^{4}+i \pi \mathrm {csgn}\left (\frac {i}{\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}+1}\right )^{3} \arctanh \left (a x \right )^{4}}{c}}{a^{2}}\) | \(381\) |
default | \(\frac {-\frac {\arctanh \left (a x \right )^{4} a x}{c}-\frac {\arctanh \left (a x \right )^{4} \ln \left (a x -1\right )}{c}+\frac {2 \arctanh \left (a x \right )^{3} \polylog \left (2, -\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}\right )-3 \arctanh \left (a x \right )^{2} \polylog \left (3, -\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}\right )+3 \arctanh \left (a x \right ) \polylog \left (4, -\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}\right )-\frac {3 \polylog \left (5, -\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}\right )}{2}+i \pi \arctanh \left (a x \right )^{4}-i \pi \mathrm {csgn}\left (\frac {i}{\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}+1}\right )^{2} \arctanh \left (a x \right )^{4}-\arctanh \left (a x \right )^{4}+4 \arctanh \left (a x \right )^{3} \ln \left (\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}+1\right )+6 \arctanh \left (a x \right )^{2} \polylog \left (2, -\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}\right )-6 \arctanh \left (a x \right ) \polylog \left (3, -\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}\right )+3 \polylog \left (4, -\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}\right )+\ln \left (2\right ) \arctanh \left (a x \right )^{4}+i \pi \mathrm {csgn}\left (\frac {i}{\frac {\left (a x +1\right )^{2}}{-a^{2} x^{2}+1}+1}\right )^{3} \arctanh \left (a x \right )^{4}}{c}}{a^{2}}\) | \(381\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \frac {\int \frac {x \operatorname {atanh}^{4}{\left (a x \right )}}{a x - 1}\, dx}{c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {x\,{\mathrm {atanh}\left (a\,x\right )}^4}{c-a\,c\,x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________